package com.javadevmap.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.cglib.proxy.Dispatcher;

//本类用于构建一个spring项目和初步使用bean
public class Product3_3 implements DisposableBean {
    private int id;
    private String name;
    public Product3_3(){

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        System.out.println("setId");
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("setName");
        this.name = name;
    }

    public  Product3_3(int id, String name){
        System.out.println("to Constructor01 succes！ ");
        this.id=id;
        this.name = name;

    }

    @Override
    public void destroy() throws Exception {
        System.out.println("该实例正在被销毁");
    }
}
